package top.laoshuzi.common.utils.pojo.page;

import java.util.ArrayList;
import java.util.List;

import top.laoshuzi.common.utils.pojo.Mapper;

public class PageListMapper<T extends Mapper<M>, M> extends Page<T> implements Mapper<List<M>> {

    @Override
    public List<M> map() {
        List<M> list = new ArrayList<>();
        for (T t : getContent())
            list.add(t.map());
        return list;
    }

}
